From 90958dfd375ad2236db02061ea0889aa0794e9b1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 24 Jan 2001 14:20:34 +0000 Subject: [PATCH] (x_new_font): Don't change a tooltip's size. --- src/xterm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 5adab80245c..f5c0a5dcc70 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11449,7 +11449,12 @@ x_new_font (f, fontname) f->output_data.x->font->fid); frame_update_line_height (f); - x_set_window_size (f, 0, f->width, f->height); + + /* Don't change the size of a tip frame; there's no point in + doing it because it's done in Fx_show_tip, and it leads to + problems because the tip frame has no widget. */ + if (NILP (tip_frame) || XFRAME (tip_frame) != f) + x_set_window_size (f, 0, f->width, f->height); } else /* If we are setting a new frame's font for the first time, -- 2.30.2